<?php


use app\base\command\TaskRun;
use app\base\command\HeygenRetrieve;
use app\base\command\GatewayService;
use app\base\command\CrontabPush;
use app\base\command\CrontabTaskRun;
use app\base\command\TaskRunV1;
use app\base\command\TaskRunUrl;
use app\base\command\TaskPush;
use app\base\command\BatchDownloadVideo;
use app\base\command\TaskRunV2;
use app\base\command\TaskRunAccount;
use app\base\command\XiaojiayuRetrieve;
use app\base\command\RemoveOrder;
use app\base\command\XiaojiayuVideoPicDownload;
use app\base\command\XiaojiayuVideoDownload;
use app\base\command\CreateXjyVideoTemplate;
use think\admin\Library;
use think\Console;

if (Library::$sapp->request->isCli()) {
    // 动态注册操作指令
    Console::starting(function (Console $console) {
        $console->addCommand(TaskRun::class);
        $console->addCommand(HeygenRetrieve::class);
        $console->addCommand(GatewayService::class);
        $console->addCommand(CrontabPush::class);
        $console->addCommand(CrontabTaskRun::class);
        $console->addCommand(TaskRunV1::class);
        $console->addCommand(TaskRunUrl::class);
        $console->addCommand(TaskPush::class);
        $console->addCommand(BatchDownloadVideo::class);
        $console->addCommand(TaskRunV2::class);
        $console->addCommand(TaskRunAccount::class);
        $console->addCommand(XiaojiayuRetrieve::class);
        $console->addCommand(RemoveOrder::class);
        $console->addCommand(XiaojiayuVideoPicDownload::class);
        $console->addCommand(XiaojiayuVideoDownload::class);
        $console->addCommand(CreateXjyVideoTemplate::class);
    });
} else {

}

